import psutil

class ResourceMonitor:
    def get_gpu_usage(self):
        """获取GPU使用情况"""
        return psutil.virtual_memory().percent